# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-zict
pkgver=2.0.0
pkgrel=0
pkgdesc="Mutable mapping tools"
url="http://zict.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-heapdict py3-lmdb"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/z/zict/zict-$pkgver.tar.gz"
builddir="$srcdir/zict-$pkgver"

case "$CARCH" in
mips64) options="!check" ;; # XXX: Runs out of memory
esac

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b6a381772eb1bb6111d05e10b60cca53a492491bb00569f2985f3270178926aeb525394946ef755db8971fe37e4b6522dcd7bfbec8ba7bb7268030179f4ae3ef  zict-2.0.0.tar.gz"
